<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- <p>{{text}}{{name}}</p>
        <!-- <p v-text="text"></p> -->
        <p><input type="text" v-model="text">{{text}}</p>
        <p v-html="html"></p>
        <p>{{html}}</p>
        <button @click="fn">{{text}}</button>
        <button v-on:click="fn">{{text}}</button>
        <p>{{obj.name}}</p>
    </div>
</body>
<script src="./js/dep.js"></script>
<script src="./js/watcher.js"></script>
<script src="./js/observe.js"></script>
<script src="./js/compiler.js"></script>
<script src="./js/vue.js"></script>
<script>
    const vm = new Vue({
        el: '#app',
        data: {
            text: 'aaa',
            html: '<strong>123</strong>',
            obj: {
                // name:'aaa'
            },
            arr: [1, 2, 3]
        },
        methods: {
            fn() {
                let observe = new Observe()
                observe.defineReactive(this.obj, 'name', 'Trump')
            }
        }
    })
    console.log(vm)

    function fn() {
        console.log('fn')
    }
</script>

</html>